package com.shanzhu.tourism.mapper;

import com.shanzhu.tourism.domain.Ticket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2025/03/28/14:45
 **/
@Mapper
public interface TicketMapper {
    List<Ticket> selectList(Ticket ticket);
    Ticket selectById(Long ticketId);
    int insert(Ticket ticket);
    int update(Ticket ticket);
    int deleteById(Long ticketId);
    int updateAvailableSeats(@Param("ticketId") Long ticketId, @Param("count") Integer count);
}
